const getters = {
  device: state => state.app.device,
  token: state => state.user.token,
  userInfo: state => state.user.info,
  userId: state => state.user.id,
  userShopId: state => state.user.shopId,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  username: state => state.user.username,
  agentFlow: state => state.user.agentFlow,
  wechatOpenid: state => state.user.wechatOpenid,
  businessInfo: state => state.user.businessInfo,
  userSuffix: state => state.user.userSuffix,
  fileBaseUrl: state => state.user.fileBaseUrl,
  bisWebLogo: state => state.user.bisWebLogo,
  banBtnList: state => state.user.banBtnList,
  features: state => state.user.features,
  allShopList: state => state.user.allShopList,
  allManageShopFilterOptions: state => state.user.allManageShopFilterOptions,
  manageShopList: state => state.user.manageShopList,
  manageShopListExcludeHeadquarters: state => state.user.manageShopListExcludeHeadquarters,
  manageDeviceList: state => state.user.manageDeviceList,
  allManageDeviceFilterOptions: state => state.user.allManageDeviceFilterOptions,
  manageBizCodeOptions: state => state.user.manageBizCodeOptions,
  channelBizCodeOptions: state => state.user.channelBizCodeOptions,
  userLoaded: state => state.user.loaded,
  authentication: state => state.user.authentication,

  paymentOptions: state => state.setting.paymentOptions,
  paymentKeyOptions: state => state.setting.paymentKeyOptions,
  bizCodeKeyOptions: state => state.setting.bizCodeKeyOptions,
  sourceCodeOptions: state => state.setting.sourceCodeOptions,
  sourceCodeKeyOptions: state => state.setting.sourceCodeKeyOptions,
  cardCouponTypeKeyOptions: state => state.setting.cardCouponTypeKeyOptions,
  authorizeApi: state => state.setting.authorizeApi,
  orderType: state => state.setting.orderType,

  sidebar: state => state.menus.sidebar,
  menus: state => state.menus.menus,
  curMenu: state => state.menus.curMenu,
  codeMenu: state => state.menus.codeMenu,
  sidebarMenus: state => state.menus.sidebarMenus,
  sidebarMenusIndex: state => state.menus.sidebarMenusIndex,

  bookMsgTotal: state => state.message.bookMsgTotal,

  maInfo: state => state.wechat.maInfo,
  mpInfo: state => state.wechat.mpInfo,

  // mp: state => state.wechat.mp,
  // ma: state => state.wechat.ma,
  activeMpAppid: state => state.wechat.activeMpAppid,
  activeMaAppid: state => state.wechat.activeMaAppid,

  oemConfig: state => state.oem.oemConfig,

  activePageForm: state => state.wxaBuild.activePageForm,
  selectedTypes: state => state.wxaBuild.selectedTypes,
  menuList: state => state.wxaBuild.menuList,
  selectedKeys: state => state.wxaBuild.selectedKeys,
  businessTypes: state => state.wxaBuild.businessTypes,

  moduleData: state => state.wxaBuild.moduleData,

  platformType: state => state.user.platformType,
  platformTypeTitle: state => state.user.platformTypeTitle,
  businessResourceBtns: state => state.user.businessResourceBtns,

}
export default getters
